import Login from './pages/Login.vue'
import NotFound from './pages/404.vue'
import Home from './pages/Home.vue'
import Main from './pages/Main.vue'
import Table from './pages/nav1/Table.vue'
import Form from './pages/nav1/Form.vue'
import user from './pages/nav1/user.vue'
import customerOrderList from './pages/Order/customerOrderList.vue'
import Page5 from './pages/nav2/Page5.vue'
import Page6 from './pages/nav3/Page6.vue'
import echarts from './pages/charts/echarts.vue'
import customerList from './pages/Customer/CustomerList.vue'
import test from './pages/test/test.vue'


import memberList from './pages/member/memberList.vue'
import companyList from './pages/Company/companyList.vue'
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '客户',
        iconCls: 'fa fa-address-book-o',//图标样式class
        children: [
            { path: '/customerList', component: customerList, name: '客户列表', hidden: false }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '订单',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/customerOrderList', component: customerOrderList, name: '订单列表' },
            { path: '/test', component: test, name: '测试' }
        ]
    },
     {
        path: '/',
        component: Home,
        name: '员工管理',
        iconCls: 'fa fa-user-circle-o',
        children: [
            { path: '/memberList', component: memberList, name: '员工列表' }

        ]
    },
      {
        path: '/',
        component: Home,
        name: '企业管理',
        iconCls: 'fa fa-industry',
        children: [
            { path: '/companyList', component: companyList, name: '企业列表' }

        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;